<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="geoxml3.js"></script>
<script type="text/javascript"
        src="http://maps.googleapis.com/maps/api/js?v=3.6&sensor=false&libraries=geometry">
</script>
<script type="text/javascript">
function myFunction()
{
alert("Hello World!");



}

function initialize() {
alert("Hello World!");
var myLatlng = new google.maps.LatLng(39.397, -100.644);
  var myOptions = {
    zoom: 5,
    center: myLatlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  var map = new google.maps.Map(document.getElementById('map_canvas'), myOptions);

  var geoXml = new geoXML3.parser({map: map, processStyles: true});
  //geoXml.parse('/home/it-front/Desktop/TestWeb/5.kml');
  geoXml.parseKmlString("<Placemark><name>Land</name><Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBoundaryIs><LinearRing><coordinates>79.91911761666667,6.904451366666667,8.1 79.91897221666666,6.90443795,8.3 79.91897306666667,6.9044365,8.6 79.91897035,6.9044218,8.6 79.91901763333334,6.904213166666667,5.1 79.91902176666666,6.904208533333334,5.6 79.91914238333334,6.904244333333334,5.1 </coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>99190306904344</name><description>Middle of the Land</description><Point><coordinates>79.91903071904763,6.904344807142857,7.0571427</coordinates><referenceNo>99190306904344</referenceNo></Point></Placemark>");

alert("Hello World!");
}



</script>
</head>

<body>
<button onclick="initialize()">Try it</button>
<form name="form" id="fileupload" enctype="multipart/form-data" action="" method="post">
<input id="blob" name="blob" class="simpleinput" type="file" />
</form>

<div id='map_canvas' style='height:500px; width: 600px'></div>


</body>
</html>
